







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Enumerates the indices of all the items in a list equal to one of several given items.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public static IEnumerable<int> IndicesOfMany<T>( IList<T> list, IEnumerable<T> itemsToLookFor ) |
Visual Basic (Declaration) |
---|
Public Shared Function IndicesOfMany(Of T) ( _ list As IList(Of T), _ itemsToLookFor As IEnumerable(Of T) _ ) As IEnumerable(Of Integer) |
Visual C++ |
---|
public: generic<typename T> static IEnumerable<int>^ IndicesOfMany ( IList<T>^ list, IEnumerable<T>^ itemsToLookFor ) |
Parameters
- list
- IList<(Of <T>)>
The list to search.
- itemsToLookFor
- IEnumerable<(Of <T>)>
A collection of items to search for.
Return Value
An IEnumerable<T> that enumerates the indices of items equal to any of the items in the collection itemsToLookFor.
Type Parameters
- T
Remarks
The default sense of equality for T is used, as defined by T's
implementation of IComparable<T>.Equals or object.Equals.
See Also
Algorithms Class
Wintellect.PowerCollections Namespace